-- GENERATED SPELL FOR [Orgrimmar Shaman] --


function spell0_18972(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(16170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18972', 30280, 1)
end

function spell1_18972(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(15616,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18972', 12000, 1)
end

function spell2_18972(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(20545,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18972', 0, 1)
end

function Sorts_18972(pUnit, Event)
local choix_sorts_18972 = math.random(0, 2)
if choix_sorts_18972 == 0 then
pUnit:RegisterEvent('spell0_18972', 1, 1)
end
if choix_sorts_18972 == 1 then
pUnit:RegisterEvent('spell1_18972', 1, 1)
end
if choix_sorts_18972 == 2 then
pUnit:RegisterEvent('spell2_18972', 1, 1)
end
end

function mob18972_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18972', math.random(1500, 3000), 1)
end

function mob18972_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18972_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18972_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18972, 1, 'mob18972_Action')
RegisterUnitEvent(18972, 2, 'mob18972_Leave')
RegisterUnitEvent(18972, 3, 'mob18972_Kill')
RegisterUnitEvent(18972, 4, 'mob18972_Die')
